import request from '@/utils/request'

// 查询秒杀记录列表
export function listSeckillRecord(query) {
  return request({
    url: '/system/SeckillRecord/list',
    method: 'get',
    params: query
  })
}

// 查询秒杀记录详细
export function getSeckillRecord(recordId) {
  return request({
    url: '/system/SeckillRecord/' + recordId,
    method: 'get'
  })
}

// 新增秒杀记录
export function addSeckillRecord(data) {
  return request({
    url: '/system/SeckillRecord',
    method: 'post',
    data: data
  })
}

// 修改秒杀记录
export function updateSeckillRecord(data) {
  return request({
    url: '/system/SeckillRecord',
    method: 'put',
    data: data
  })
}

// 删除秒杀记录
export function delSeckillRecord(recordId) {
  return request({
    url: '/system/SeckillRecord/' + recordId,
    method: 'delete'
  })
}
